<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/3/31
  Time: 14:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--设计到文件传输的时候必须要用到enctype="multipart/form-data"--%>
<form action="/newsSave" method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" value="${news.id}">
    <div>标题：<input type="text" name="title" value="${news.title}"></div>
    <div>介绍：<input type="text" name="introduction" value="${news.introduction}"></div>
    <div><input type="file" name="file"></div>
    <div><input type="submit"></div>
</form>

</body>
</html>
